package com.example.whatrubbish.mapper;

import com.example.whatrubbish.model.Question;
import com.example.whatrubbish.vo.Criteria;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component("QuestionMapper")
public interface QuestionMapper {
    Long selectByQueryConditionCount(Criteria criteria);

    List<Question> selectByQueryCondition(Criteria criteria);

    List<Question> selectRand();

    int deleteByPrimaryKey(Integer id);

    int insert(Question record);

    int insertSelective(Question record);

    Question selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Question record);

    int updateByPrimaryKey(Question record);
}